package com.spring.xmlbean;

import java.util.Map;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;
import org.springframework.util.Assert;
import com.spring.bean.Spring3HelloWorld;
public class Spring3HelloWorldTest {

	public static void main(String[] args) {

		XmlBeanFactory beanFactory = new XmlBeanFactory(new ClassPathResource(
				"SpringHelloWorld.xml"));

		Spring3HelloWorld myBean = (Spring3HelloWorld) beanFactory
				.getBean("Spring3HelloWorldBean");
		myBean.sayHello();

	}

}
